<h1><%= title "Editing #{@kingdom.name}" %></h1>

<% form_for(@kingdom) do |f| %>
  <%= f.error_messages %>

  <p>
		<%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
		<%= f.label :culture_id %><br />
    <select name="kingdom[culture_id]">
		<%= options_culture_select @kingdom.culture_id %>
		</select>
  </p>
  <p>
		<%= f.label :flag %><br />
    <%= f.text_field :flag %>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @kingdom %> |
<%= link_to 'Back', kingdoms_path %>